package com.ruoyi.system.service;

import com.ruoyi.system.domain.User;
import com.ruoyi.system.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserSerice {
    @Autowired
    private UserMapper userMapper;

    public List<User> selectAllUser()
    {
        return userMapper.selectAllUser();
    }
    public String addUser(User user)
    {
        return userMapper.addUser(user);
    }
    public String deleteUser(int id)
    {
        return userMapper.deleteUser(id);
    }
    public String putUser(User user)
    {
        return userMapper.putUser(user);
    }

}
